{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">信息管理</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <form class="layui-form layui-form-pane" action="{:url('admin/vgjmbjli/index')}" method="get">
                    <div class="layui-inline">
                        <label class="layui-form-label">名称或手机</label>
                        <div class="layui-input-inline">
                            <input type="text" name="keyword" value="{$keyword}" placeholder="请输入关键词" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn">搜索</button>
                    </div>
                </form>
                <hr>
                <form action="" method="post" class="ajax-form">
                <button type="button" class="layui-btn layui-btn-danger layui-btn-small ajax-action" data-action="{:url('admin/vgjmbjli/delete')}">删除</button>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 15px;"><input type="checkbox" class="check-all"></th>
                        <th style="width: 30px;">ID</th>
                        <th>预约姓名</th>
                        <th>预约手机</th>
                        <th>预约日期</th>
                        <th>预约业务</th>
                        <th>是否联系</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="reserved_list" item="vo"}
                    <tr>
                        <td><input type="checkbox" name="ids[]" value="{$vo.id}">
                        <td>{$vo.id}</td>
                        <td>{$vo.reservedName}</td>
                        <td>{$vo.reservedPhone}</td>
                        <td>{$vo.reservedDate}</td>
                        <td>{if $vo.nav_id}{$nav_list[$vo['nav_id']]}{else/}无{/if}</td>
                        <td>
                            {if $vo.contact==1}
                                <i style="font-style: normal;color:#4caf50;">已联系&nbsp;&nbsp;联系时间:{$vo.contactDate}&nbsp;&nbsp;联系人:{$vo.contactMan}</i>
                            {else /}
                               <i style="font-style: normal;color:#e90d24;">未联系</i>
                            {/if}
                        </td>                                  
                        <td>
                            <a href="{:url('admin/vgjmbjli/reading',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-mini">查看</a>
                            <a href="{:url('admin/vgjmbjli/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--分页-->
                {$reserved_list->render()}
                </form>
            </div>
        </div>
    </div>
</div>
{/block}